#include "calClient.hpp"
#include <memory>

void Usage(string proc)
{
    cout << "Usage:\n\t" << proc << " server_ip" << " server_port" << endl;
}

int main(int argc, char* argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(USAGE_ERR);
    }
    string serverip(argv[1]);
    uint16_t serverport = atoi(argv[2]);
    unique_ptr<calClient> cli(new calClient(serverip, serverport));
    cli->initClient();
    cli->startClient();
    return 0;
}